package com.test.gk;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Main {
    public static void main(String[] args) {
        // 设置系统参数log4j2.contextSelector的值
        System.setProperty("log4j2.contextSelector", "org.apache.logging.log4j.core.async.AsyncLoggerContextSelector");
        Logger logger = LoggerFactory.getLogger(Main.class);
        logger.info("INFO 信息");
        System.out.println("Hello world!");
        logger.info("INFO 信息");
    }
}